//
//  StudyRequestManager.m
//  TrainTree
//
//  Created by wanghui on 2017/8/26.
//  Copyright © 2017年 YouYeShu. All rights reserved.
//

#import "StudyRequestManager.h"

@implementation StudyRequestManager
+ (void)getStudyType:(StudyType)type Response:(ResponseData)responseBlock
{
    RequestParam *param = [[RequestParam alloc]init];
//    [param setString:@"10001" forKey:@"userId"];
    [param setString:[NSString stringWithFormat:@"%ld", type] forKey:@"type"];
    [param setRequestPath:TrainTreeStudyListURL];
    [[HttpClient shareInstanceClient] GetReqeustParameter:param response:^(id JSONData, NSError *error, NSURLSessionDataTask *dataTask) {
        if (JSONData) {
                responseBlock(JSONData,error,dataTask);
        }else{
            [SVProgressHUD showErrorWithStatus:@"获取数据失败，请检查网络"];
        }
    }];


}


@end
